package com.yc.exam.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author 75073
 */
@Getter
@Setter
@TableName("menu_role")
@ApiModel(value = "MenuUser对象", description = "")
@NoArgsConstructor
public class MenuRole implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId("id")
  private Long id;

  @ApiModelProperty("菜单id")
  @TableField("menu_id")
  private Long menuId;

  @ApiModelProperty("角色id")
  @TableField("role_id")
  private Long roleId;

  public MenuRole(Long menuId, Long roleId) {
    this.menuId = menuId;
    this.roleId = roleId;
  }
}
